<template>
  <view class="userinfo">
    <!-- 顶部 -->
    <view class="userinfo-top">
      <view class="status-bar"></view>
      <view class="user-nav">
        <view class="user-nav-left">
          <view class="left-back" @click="topmoney()">
            <image src="../../../static/money/money-back.png" mode=""></image>
          </view>
          <view class="left-tit">
            账户信息
          </view>
        </view>
        <view class="user-nav-right">
          <view class="right-three">
            <image src="../../../static/money/solidCircles.png" mode=""></image>
          </view>
          <view class="right-close">
            <image src="../../../static/money/wrong.png" mode=""></image>
          </view>
        </view>
      </view>
    </view>
    <!-- 顶部 -->
    <!-- 内容 -->
    <view class="user-con">
      <view class="con-item">
        <view class="item" v-for="(item,index) in list">
          <view class="item-left">{{item.name}}</view>
          <view class="item-right">{{item.con}}</view>
        </view>
        <view class="more">
          点击查看详情&nbsp;&gt;
        </view>
      </view>
      <u-gap height="10" bgColor="#F4F5F6"></u-gap>
      <view class="con-item">
        <view class="item" v-for="(item,index) in list2">
          <view class="item-left">{{item.name}}</view>
          <view class="item-right">{{item.con}}</view>
        </view>
        <view class="more">
          点击查看详情&nbsp;&gt;
        </view>
      </view>
    </view>
    <!-- 内容 -->
  </view>
</template>

<script>
  export default {
    data() {
      return {
        list: [{
          name: '个人账户状态',
          con: '封存'
        }, {
          name: '个人账户余额',
          con: '1,176.00'
        }, {
          name: '个人账户',
          con: '202305847671'
        }, {
          name: '中心编号',
          con: '370100000000000'
        }, {
          name: '中心名称',
          con: '济南住房公积金管理中心'
        }],
        list2: [{
          name: '个人账户状态',
          con: '封存'
        }, {
          name: '个人账户余额',
          con: '10.00'
        }, {
          name: '个人账户',
          con: 'GJJ018443825'
        }, {
          name: '中心编号',
          con: '110000000000000'
        }, {
          name: '中心名称',
          con: '北京住房公积金管理中心'
        }]
      };
    },
    methods: {
      topmoney() {
        uni.navigateBack({
          delta: 1
        })
      },
    }
  }
</script>

<style lang="scss">
  page {
    background-color: #F4F5F6;
  }

  .userinfo {
    width: 100vw;

    // 顶部
    .userinfo-top {
      width: 100vw;
      height: 140rpx;
      position: fixed;
      z-index: 999;
      overflow: hidden;
      top: 0;
      background-image: linear-gradient(#7495F2, #2047C8);

      .status-bar {
        width: 100vw;
        height: var(--status-bar-height);
      }

      .user-nav {
        width: 90vw;
        margin: 0 auto;
        height: 120rpx;
        height: 88rpx;
        line-height: 88rpx;
        display: flex;
        justify-content: space-between;

        .user-nav-left {
          display: flex;

          .left-back {
            margin-right: 30rpx;

            image {
              width: 40rpx;
              height: 40rpx;
              vertical-align: middle;
            }
          }

          .left-tit {
            color: #fff;
            font-size: 40rpx;
          }
        }

        .user-nav-right {
          display: flex;

          .right-three {
            margin-right: 30rpx;

            image {
              width: 40rpx;
              height: 8rpx;
              vertical-align: middle;
            }
          }

          .right-close {
            image {
              width: 40rpx;
              height: 40rpx;
              vertical-align: middle;
            }
          }
        }
      }
    }

    // 顶部
    // 内容
    .user-con {
      height: 100vh;
      position: relative;
      padding-top: 120rpx;

      .con-item {
        padding: 30rpx 5vw;
        box-sizing: border-box;
        background-color: #fff;
        line-height: 60rpx;

        .item {
          display: flex;
          justify-content: space-between;

          .item-left {
            color: #949494;
          }

          .item-right {
            color: #3C3C3C;
          }
        }

        .more {
          text-align: right;
          color: #3D63D7;
        }
      }
    }

    // 内容
  }
</style>